package band.wukong.practice.util.mess;

/**
 * <P>Title: band.wukong.practice.util.mess.NumberUtils</P>
 * <p>Description: 数字Utils</p>
 * <p>Date: 2008-11-5 8:55:32 </p>
 *
 * @author sunjs
 */
public class NumberUtils {
    /**
     * String转Integer
     *
     * @param s
     * @return
     */
    public static Integer getInteger(String s) {
        if (null == s || s.trim().equals(""))
            return null;
        else
            return Integer.valueOf(s);
    }

    /**
     * String转换成Long
     *
     * @param s
     * @return
     */
    public static Long genLong(String s) {
        if (null == s || s.trim().equals(""))
            return null;
        else
            return Long.valueOf(s);
    }

    public static void main(String[] args) {

    }
}
